﻿@model BskLeague.Models.Stadium

@{
    ViewBag.Title = "Stadion :: Edycja";
}

<h2>Edytuj stadion</h2>

<form action="../Update" method="post">
    <input type="hidden" id="stadiumId" name="stadiumId" value="@Model.stadiumId" />
    <table width="100%">
        <tr>
            <th>
                Nazwa:
            </th>
            <th>
                @Html.TextBox("stadiumName", @Model.stadiumName, new { @style = "width: 100%;" })
            </th>
            <td rowspan="3"><img src="@Model.stadiumPhotoUrl" title="@Model.stadiumName" alt="@Model.stadiumName" height="200px" /></td>
        </tr>
        <tr>
            <td>Ulica:<br />Miasto:</td>
            <td>@Html.TextBox("stadiumAddressStreet", @Model.stadiumAddressStreet, new { @style = "width: 100%;" })<br />@Html.TextBox("stadiumAddressCity", @Model.stadiumAddressCity, new { @style = "width: 100%;" })</td>
        </tr>
        <tr>
            <td>Zdjęcie:</td>
            <td>@Html.TextBox("stadiumPhotoUrl", @Model.stadiumPhotoUrl, new { @style = "width: 100%;" })</td>
        </tr>
        <tr>
            <td><input type="submit" value="Zapisz" />&nbsp;@Html.ActionLink("Anuluj", "Details", new { id = @Model.stadiumId })</td>
        </tr>
    </table>
</form>
